<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2021/12/16
 * Time: 10:15
 */
include_once '../tools/DbTools.php';

$accountCode = $_POST['accountCode'];
$phone = $_POST['phone'];
$realName = $_POST['realName'];

if (empty($accountCode)||empty($phone) ||empty($realName)){
    echo '有必要信息为输入'.'<a href="originalPage.php">回到开户页面</a>';
    die;
}

else{
    DbTools::InitDb();
    $sql = "insert into AccountInfo(AccountCode,AccountPhone,RealName,OpenTime) values($accountCode,$phone,'$realName',now())";
    $result = DbTools::noSelect($sql);
}